﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <script src="Scripts/jquery-1.10.2.min.js"></script>
    <script>
        var server = "http://115.28.214.74/api/";

        function GPSMsgPost() {
            var funName = "gpsmsg";

            var postData = { "mobile": "13331885725", "lon": 132.112, "lat": 34.1231, "radius": 100.0, "dir": 46.7, "speed": 30.0, "prov": "北京", "city": "北京", "dist": "通州", "addr": "马驹桥1桥南200米", "time": "2014/3/18 18:26:51" };

            for (var i = 0; i < 1000; i++) {
                $.ajax({
                    type: "POST",
                    url: server + funName,
                    data: postData,
                    dataType: "json",
                    success: function (data) {
                        $("#result").html("调用方法名称：" + funName + "<br/>" + JSON.stringify(data))
                    }
                });
            }
        }
    </script>
</head>
<body>
    <div id="result"></div>
    <button onclick="javascript: GPSMsgPost()">UnitTest</button>
</body>
</html>
